#include "stdafx.h"

#include "../NewService/Client.h"
#include "cmd.h"

BOOL cmdparse::runcmd(int code, clientSession *cls, byte* arg)
{
	if (cmdlist.size() - 1 < code)
	{
		cls->sendmsg(code);
		return FALSE;
	}
	return cmdlist[code](cls, arg);
}